﻿using UnityEngine;
using System.Collections;
using PBMessage;
namespace GameUnit
{
    public class Behavior
    {
        public long UUID;
        public string BehaviorName;
        public Unit SrcUnit;
        public virtual void Init(Hashtable configTable,Unit srcUnit,long uuid)
        {
            this.BehaviorName = (string)configTable[":name"];
            this.SrcUnit = srcUnit;
            this.UUID = uuid;
        }
        public virtual void OnLoad() { }

        public virtual void OnServerBehaviorSync(SC_BehaviorOperation syncPacket)
        {
        }
    }
}
 